package cn.zxcoder.entity.login;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-06-14
 */
@TableName("user_behavior")
@ApiModel(value = "Behavior对象", description = "")
public class Behavior implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    @ApiModelProperty("用户id")
    private Integer userId;

    @TableField("user_name")
    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户操作时间")
    private Date time;

    @ApiModelProperty("登陆0，注销1")
    private Integer type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Behavior{" +
            "id=" + id +
            ", userId=" + userId +
            ", userName=" + userName +
            ", time=" + time +
            ", type=" + type +
        "}";
    }
}
